package cn.lxb.goldengate.demo.account;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountController {
	@GetMapping("/test")
	public String test() {
		return "user service: test";
	}
	
	@PostMapping("/test")
	public String test(@RequestBody String name) {
		return "account service, hello: "+ name;
	}
}
